package com.plz.afmt.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.plz.web.base.vo.PagerResult;
import java.util.List;

import com.plz.afmt.dto.EnterprisesDto;
import com.plz.afmt.dto.EnterprisesQueryDto;
import com.plz.afmt.entity.EnterprisesEntity;
import com.plz.afmt.vo.EnterprisesVo;

/**
* 企业表
*
* @author jzc
*/
public interface EnterprisesService extends IService<EnterprisesEntity> {

    PagerResult<EnterprisesVo> pageQuery(EnterprisesQueryDto dto);

    EnterprisesEntity add(EnterprisesDto dto);

    EnterprisesEntity update(EnterprisesDto dto);

    List<EnterprisesEntity> addOrUpdateList(List<EnterprisesDto> dto);

    List<EnterprisesVo> listFor();

    EnterprisesVo detail(Long id);

    /**
     * 更新会员时间
     * @param dto
     * @return
     */
    Boolean updateVipTime(EnterprisesDto dto);

    EnterprisesEntity getByCode(String enterprisesCode);
}